package com.runa.monitor.platinterface.extend.third.newester.validator;

import javax.validation.Constraint;
import javax.validation.Payload;
import java.lang.annotation.*;

/**
 * @Author: lyd
 * @Description:
 * @Date: 2021/11/3 10:18
 * @Version: 1.0
 */
@Target({ElementType.FIELD})
@Retention(RetentionPolicy.RUNTIME)
@Documented
@Constraint(validatedBy = {EnumValidator.class})
public @interface Enum {
    String message() default "枚举类型不对";
    String[] value();
    Class<?>[] groups() default {};
    Class<? extends Payload>[] payload() default {};
}